CC = nvcc
CFLAGS = 

BIN = bin
SRC = src
OBJ = obj

PROGRAM_NAME = smoothFilter

all: smoothFilter.o compile

compile:
	@$(CC) $(OBJ)/$(PROGRAM_NAME).o -o $(BIN)/$(PROGRAM_NAME)
	@echo compilation completed

smoothFilter.o:
	@$(CC) -c $(SRC)/$(PROGRAM_NAME).cu $(CFLAGS) -o $(OBJ)/$(PROGRAM_NAME).o
	@echo smoothFilter.o compiled

run:
	@echo running...
	@./$(BIN)/$(PROGRAM_NAME)
	@echo running successful

clear:
	@echo cleaning project
	@rm $(OBJ)/*.o $(BIN)/*

# cluster to local
push:
	@scp -P 2030 grupo-03a@wsarch.lasdpc.icmc.usp.br:~/Projeto/Paralelo/out.ppm /home/brenno/Programas/Concorrentes/pc2014-grupo3-turmaa/Projeto/Paralelo/out.ppm

# local to cluster
pull:
	@scp -r -P 2030 /home/brenno/Programas/Concorrentes/pc2014-grupo3-turmaa/Projeto/Paralelo/ grupo-03a@wsarch.lasdpc.icmc.usp.br:~/Projeto/
